package com.lysj.order.order.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ Author ：drj.
 * @ Date  ：Created in 16:08 2019/3/29
 * @ Description:后台订单vo
 **/
@Data
public class OrderVo {

    private String id; //订单id

    private String orderNumber; //订单编号

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") //将时间搓变为date
    private Date createTime; //下单时间

    private String deskId; //餐桌id

    private String deskName; //餐桌名称

    private String customerId; //用户id

    private String phone; //用户手机号

    private Integer goodsAmount; //菜份数

    private BigDecimal money; //订单金额

    private BigDecimal actPayMoney;//实付金额

    private Integer payWay; //支付方式

    private Integer status; //订单状态

    private Integer cusAmount;//用餐人数

    public OrderVo() {
    }

    public OrderVo(String id, String orderNumber, Date createTime, String deskId, String customerId, BigDecimal actPayMoney, Integer payWay, Integer status, Integer cusAmount) {
        this.id = id;
        this.orderNumber = orderNumber;
        this.createTime = createTime;
        this.deskId = deskId;
        this.customerId = customerId;
        this.actPayMoney = actPayMoney;
        this.payWay = payWay;
        this.status = status;
        this.cusAmount = cusAmount;
    }


}
